home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
os2
/
ssaver2x.arj
/
SAMPLE11.TXT
< prev
next >
Wrap
Text File
|
1993-12-14
|
3KB
|
68 lines
Hi ScreenSaver module developer!
================================
This is version 1.1 of the sample ScreenSaver module.
Changes since version 1.0
-------------------------
There are some minor enhancements to the original code.
There is limited support for compiling with Borland C++ now. See below for
more info on that.
The old (version 1.0) code STILL WORKS. The code that was added since
version 1.0 should solve the idle-priority problem that prevented the saver
modules from doing their action when CPU usage of other programs was 100%.
Most of the changes are to avoid compiler warnings from Borland C++.
Changes in the source files since version 1.0 are marked like the follwoing:
// !!!!! line added since version 1.0
The following files have changed:
sample.def: one line changed
sample.mak: (limited) support for Borland C++, minor enhancements
sample.c: changes & code added
The following files have not changed:
sample.h: no changes
sample.rc: no changes
sample.dlg: no changes
The following files were added:
minirtl.c: (only needed for compiling with Borland C++)
bccdll0.asm: (only needed for compiling with Borland C++)
sample11.txt: this file
It should not be too much work to incorporate the changes in SAMPLE.C if
you have written code for version 1.0.
I suggest you cut your code and paste it into the new SAMPLE.C. An utility
like "Visual Compare" (all/diskutil/vc132.zip on ftp.cdrom.com) might be
useful for that.
Compiling with Borland C++
--------------------------
Because of initialization problems with the Borland C runtime library (RTL),
you MUST NOT use ANY RTL-functions (malloc, free, strcpy, _beginthread, srand,
rand, fopen, open, printf etc.).
In the file MINIRTL.C you can find some useful C library functions as source
code. If you link your module with MINIRTL.OBJ, you can use those
functions in your module. DO NOT use any other rtl functions. DO NOT link
your module with one of the Borland libraries (C2*.LIB) (OS2.LIB is ok).
DO NOT link with the startup code supplied by Borland (C02*.OBJ). Use the
startup code BCCDLL0.ASM instead.
This seems rather complicated, but in fact all you have to do is uncomment
the "USE_BCC=1" line in SAMPLE.MAK and type "MAKE -F SAMPLE.MAK".
------------------------------------------------------
If you are going to write saver modules, please get in contact with me.
If you have any questions, just contact me via e-mail.
Greetings
Siegfried Hanisch
hanisch@swwwnext.tuwien.ac.at